<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('发放范围')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[type]-id"><input id="row[type]-id" name="row[type]" type="radio" value="id" checked/>指定用户</label>
                <label for="row[type]-all"><input id="row[type]-all" name="row[type]" type="radio" value="all" /> 全员</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uid" data-source="user.user/index" class="form-control selectpage" name="row[uid]" type="text" value=""
                   data-field="username" data-pagination="true" data-page-size="10" data-multiple="true">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[id]" value="{:$id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
